package com.sky.service;

import com.sky.dto.OrdersPageQueryDTO;
import com.sky.dto.ReportDto;
import com.sky.result.Result;

import javax.servlet.http.HttpServletResponse;
import java.time.LocalDate;

/**
 * @InterfaceName: ReportService
 * @Author: YuanDing
 * @Date: 2024/2/9 16:27
 * @Description:
 */

public interface ReportService {
    /**
     * 订单统计相关
     * @return
     */
    Result ordersStatistics(LocalDate beginDate , LocalDate endDate);

    /**
     * 营业额统计
     * @param begin
     * @param end
     * @return
     */
    Result turnoverStatistics(LocalDate begin, LocalDate end);

    /**
     * 销量top
     * @param reportDto
     * @return
     */
    Result top(ReportDto reportDto);

    /**
     * 用户统计
     * @param reportDto
     * @return
     */
    Result userStatistics(ReportDto reportDto);

    /**
     * 导出报表
     * @param httpServletResponse
     */
    void export(HttpServletResponse httpServletResponse);
}
